#pragma once
#include "windows.h"

class CMyLogWnd
{
public:
    void PrintLog(const char* pcLogText);
    void SaveToFile(const char* pcFileName);

    static CMyLogWnd* Get()
    {
        static CMyLogWnd kWnd;
        return &kWnd;
    }

    CMyLogWnd(void);
    ~CMyLogWnd(void);

private:
    HANDLE m_hConsole;
    CRITICAL_SECTION m_kSection;
};
